package com.xbn.netty.nettyGroupChat;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author XBN
 * @date 2020/10/21 16:04
 * @email 78742541@qq.com
 */
public class GroupChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
       //直接输出服务器端获取的信息
        System.out.println(s.trim());
    }
}
